home *** CD-ROM | disk | FTP | other *** search
- From: Paul Russell aka Rusty <Rusty.Russell@adelaide.maptek.com.au>
- Message-ID: <199603141622.QAA13030@young.adelaide.maptek.com.au>
- X-Original-Date: Fri, 15 Mar 1996 02:52:38 +1030
- Path: in2.uu.net!bounce-back
- Date: 14 Mar 96 16:48:47 GMT
- Approved: fjh@cs.mu.oz.au
- Organization: -
- Newsgroups: comp.std.c++
- X-Authentication-Warning: young.adelaide.maptek.com.au: rusty owned process doing -bs
- Subject: Clarification on DWP...
- X-Auth: PGPMoose V1.1 PGP comp.std.c++
- iQBFAgUBMUhOGeEDnX0m9pzZAQEPowF+L62DdU2wfKOpwBl08ulxVw5bIOYXJRUr
- CkQMguI/T52cnnM9TLAAjrvVgazKjIK1
- =arkc
-
- The April DWP, 9.2 paragraph 12:
-
- 12A static data member, enumerator, member of an anonymous union, or
- nested type shall not have the same name as its class.
-
- Does this mean immediately nested? Or nested at all? ie. Is this code
- legal?
-
- struct A
- {
- struct B
- {
- struct A {};
- };
- };
-
- Also, is there a similar restriction on namespaces? I couldn't find it
- anywhere...
-
- TIA,
- Rusty.
- --
- Rusty.Russell@adelaide.maptek.com.au "Engineer? So you drive trains?"
-
- Lies, damned lies, and out-of-date documentation. #include <stddisclm.h>
-
- ---
- [ comp.std.c++ is moderated. To submit articles: try just posting with ]
- [ your news-reader. If that fails, use mailto:std-c++@ncar.ucar.edu ]
- [ FAQ: http://reality.sgi.com/employees/austern_mti/std-c++/faq.html ]
- [ Policy: http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
- [ Comments? mailto:std-c++-request@ncar.ucar.edu ]
-